import request from '@/utils/request'

export function getServerList(query) {
  return request({
    url: '/attachment/server/getList',
    method: 'post',
    data: query
  })
}

export function getServerUsabelList(query) {
  return request({
    url: '/attachment/server/getAvailable',
    method: 'post',
    data: query
  })
}

export function getServerDetail(id) {
  return request({
    url: '/attachment/server/getDetail',
    method: 'post',
    data:  id 
  })
}

export function saveServer(id) {
  return request({
    url: '/attachment/server/save',
    method: 'post',
    data: id
  })
}

export function removeServerByID(id) {
  return request({
    url: '/attachment/server/remove',
    method: 'post',
    data: id
  })
}

export function changeServerStatusByID(id) {
  return request({
    url: '/attachment/server/change-status',
    method: 'post',
    data: id
  })
}

